import rxAjax from '@/assets/js/ajax.js';
export const processOverview = {};
processOverview.baseUrl= '/api-bpm/bpm/core/bpmDef';
processOverview.getAllForStart =function(parameter,isPage) {
    let url= processOverview.baseUrl+"/getAllForStart?isPage="+isPage;
    return rxAjax.postJson(url,parameter);
}
processOverview.getLastWeekBpmDef =function(parameter,isPage) {
    let url= processOverview.baseUrl+'/getLastWeekBpmDef?isPage='+isPage;
    return rxAjax.postJson(url,parameter);
}
processOverview.getCollectByCondition =function(parameter,isPage) {
    let url= processOverview.baseUrl+'/getCollectByCondition?isPage='+isPage;
    return rxAjax.postJson(url,parameter);
}

processOverview.setBpmCollect=function (defId,isCollect){
    let url = processOverview.baseUrl + '/setBpmDefCollection?defId=' + defId+'&isCollect='+isCollect;
    return rxAjax.get(url);
}
processOverview.getBpmDefCollect=function (){
    let url = processOverview.baseUrl + '/getBpmDefCollection';
    return rxAjax.get(url);
}
